﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JunYu.CodeGeneration.Repositorys
{
    public class PageData
    {
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
    }
    public class PageData<T> : PageData
    {
        public int Count { get; set; }
        public int PageCount { get => Convert.ToInt32(Math.Ceiling(Count / (double)PageSize)); }
        public List<T> ListData { get; set; }
    }
}
